package lv.imho.client.services;

import java.util.Date;
import java.util.List;

import lv.imho.client.model.DataSourceTransferObject;
import lv.imho.client.model.DataTransferObject;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

/**
 * The client side stub for the RPC service.
 * 
 * @author Igors Gulbinskis
 */
@RemoteServiceRelativePath("dataService")
public interface DataService extends RemoteService {		
	
	public Boolean saveData(DataTransferObject data);
	
	public Boolean saveDataSource(DataSourceTransferObject dataSource);
	
	public List<DataTransferObject> getData(List<DataSourceTransferObject> dataSourceTransferObjects, Date date);
	
	public List<DataSourceTransferObject> getDataSources();
	
	public Boolean exists(DataTransferObject data);
	
	public Boolean exists(DataSourceTransferObject dataSource);
	
}
